<template>
  <div @click="bannerClick">
    <div class='edit'>
      <span>{{left}}</span>
      <span>
        <!-- 插槽 -->
        <slot name="right" />
      </span>
    </div>
  </div>
</template>
<script>
export default {
  props: ['left'],
  data: () => ({}),
  methods: {
    bannerClick() {
      this.$emit('bannerClick')
    }
  }
}
</script>
<style lang="less" scoped>
.edit {
  background-color: white;
  padding: 15px;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #fafafa;
  display: flex;
  align-items: center; /* 字体横向居中 */
  justify-content: space-between;
}
</style>